const moduleB = {
  // 带命名空间的模块
  namespaced: true,
  state: () => {
    return { userName: 'B' }
  },
  getters: {
    changeName (state) {
      return state.userName + '!!!'
    }
  },
  mutations: {
    updateUserName (state) {
      state.userName = '更新后的bB'
    }
  },
  actions: {
    updateUserName (csc) {
      setTimeout(() => {
        csc.commit('updateUserName')
      }, 1500)
    }
  }
}
export default moduleB
